package com.breakfast.fun.ui.user.login;

import com.breakfast.fun.data.entity.user.coupon.Coupon;
import com.breakfast.fun.util.Api;
import com.breakfast.fun.util.RxSchedulers;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by Administrator on 2017/2/6.
 */

public class GiftModel implements GiftContract.Model {

    @Override
    public Observable<Coupon> getGiftModel(@FieldMap Map<String, String> map) {
        return Api.getInstance().service.getGiftModel(map).compose(RxSchedulers.io_main());
    }

}
